package kisti.lod.classification;

import java.io.File;

public class FileFactory {
	
	public static String SLASH = "\\";
	
	public static final String HOME_FOLDER = "";
	public static final String KEYWORD_FOLDER = "keywords";
	public static final String GROUP_FREQUENCIES_FOLDER = "group-frequencies";
	public static final String PRED_FREQUENCIES_FOLDER = "predicate-frequencies";
	public static final String FCA_TABLE_FOLDER = "fca-tables";
	public static final String GROUP_FOLDER = "predicate-groups";
	public static final String TDB_FOLDER = "tdb-test";
	public static final String RDF_TEXT_FOLDER = "rdf";
	
	public static File getKeywordFolder() {
		return new File(HOME_FOLDER + KEYWORD_FOLDER);
	}
	
	public static File getGroupFrequenciesFolder() {
		return new File(HOME_FOLDER + GROUP_FREQUENCIES_FOLDER);
	}
	
	public static File getGroupFrequenciesFile(String domain) {
		return new File(HOME_FOLDER + GROUP_FREQUENCIES_FOLDER + SLASH + domain + ".csv");
	}
	
	public static File getPredFrequenciesFolder() {
		return new File(HOME_FOLDER + PRED_FREQUENCIES_FOLDER + SLASH);
	}
	
	public static File getPredFrequenciesFile(String domain) {
		return new File(HOME_FOLDER + PRED_FREQUENCIES_FOLDER + SLASH + domain);
	}
	
	public static File getFcaTableFolder() {
		return new File(HOME_FOLDER + FCA_TABLE_FOLDER);
	}
	
	public static File getFcaTableFile(String domain) {
		return new File(HOME_FOLDER + FCA_TABLE_FOLDER + SLASH + domain);
	}
	
	public static File getGroupFolder() {
		return new File(HOME_FOLDER + GROUP_FOLDER);
	}
	
	public static String getTdbFolder() {
		return HOME_FOLDER + TDB_FOLDER;
	}
	
	public static String getTdbDomainFolder(String domain) {
		return HOME_FOLDER + TDB_FOLDER + SLASH + domain;
	}
	
	public static String getRDFTextFolder() {
		return HOME_FOLDER + RDF_TEXT_FOLDER;
	}
	
	public static File getRDFTextFile(String domain) {
		return new File(HOME_FOLDER + RDF_TEXT_FOLDER + SLASH + domain + ".ttl");
	}
}